﻿using DotXxlJob.Core;
using DotXxlJob.Core.Model;
using XxlJobDotNetCore.Services;

namespace XxlJobDotNetCore.Handler
{
    /// <summary>
    /// 删除3天以前的消息
    /// </summary>
    [JobHandler("SmartParkingHandler")]
    public class SmartParkingHandler : AbstractJobHandler
    {
        private readonly ITestJobRefitRequest _request;
        public SmartParkingHandler(ITestJobRefitRequest request)
        {
            _request = request;
        }

        public async override Task<ReturnT> Execute(JobExecuteContext context)
        {
            await _request.SmartParkingSync();
            return await Task.FromResult(ReturnT.SUCCESS);
        }
    }
}
